package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.StatsNode;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2019/11/8 11:34
 * 3
 */
public interface StatsNodeBind extends Node {
    default StatsNode stats(long interval, String durationLiteral){
        StatsNode nextNode = new StatsNode(interval, durationLiteral);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}
